from BasicLibraries import *
import fun_descriptive as fd
import os
os.environ["PATH"] += os.pathsep+'/Library/TeX/texbin'


color = ['#631919', '#009c9b', '#fb7c54', '#85af38']
dsc = fd.Descriptive()

#%% Explore the data over the full population
initiatives, missing_sdgs, initiatives_sdgs, initiatives_to_remove, dt, res, resT, resS,  R, RN, S, SN = dsc.get_BRD(sdgs = [6,7,9,11,12,13,14,15] , diversification_measure='entropy')
#%%
data_to_share  = dt[['rfyear', 'ids', 'diversification']]

#%%
data_to_share.to_csv('local_data/rd_102024.csv')
